/*
 * StatusChecker.java
 *
 * Created on 2 listopad 2007, 10:41
 *
 */

package kosciak.blip4j.automation;

import java.util.List;
import kosciak.blip4j.BlipClient;
import kosciak.blip4j.BlipException;
import kosciak.blip4j.Update;

/**
 * <CODE>StatusChecker</CODE> checks for new Status you sent.
 * @author Wojtek 'KosciaK' Pietrzok
 */
public class StatusChecker extends Checker{
    
    /** 
     * Creates a new instance of StatusChecker.
     * Checks for new Statuses sent by you only. 
     * @param client a BlipClient to be used by the Update Checker
     * @param start an Update to start checking from
     * @param interval an interval between checking (in miliseconds)
     */
    public StatusChecker(BlipClient client, int start, long interval) {
         super(client, start, interval);
    }

    @Override
    public List<Update> poll() throws BlipException {
        return getBlipClient().pollStatuses(getLast());
    }
    
}
